package main

import "fmt"

func bubbleSort(data *[10]int) {
	for i:=0;i<len(data)-1;i++{
		for j:=0;j<len(data)-i-1;j++{
			if data[j]>data[j+1] {
				temp := data[j]
				data[j] = data[j+1]
				data[j+1] = temp
			}
		}
	}
}

func main(){
	var arr = [10]int{4,8,1,0,9,7,2,3,5,6}
	bubbleSort(&arr)

	for i := range arr {
		fmt.Println(arr[i])
	}
}
